package com.sun.demo.job;


import com.sun.service.HelloWorldService;
import lombok.extern.slf4j.Slf4j;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.quartz.QuartzJobBean;

@Slf4j
public class Job03 extends QuartzJobBean {

    @Autowired
    private HelloWorldService helloWorldService;

    @Override
    protected void executeInternal(JobExecutionContext jobExecutionContext) throws JobExecutionException {
        log.info("Job03开始执行。。。。。");
        log.info("===={}",helloWorldService);
    }
}
